
/*
 XMail OSAX -- Copyright (C) 2004, 2005, 2006, 2007 Jean-Baptiste LE STANG osax@lestang.org
 
	
 This program is free software; you can redistribute it and/or modify
 it under the terms of the GNU General Public License as published by
 the Free Software Foundation; either version 2 of the License, or
 (at your option) any later version.
 
 This program is distributed in the hope that it will be useful,
 but WITHOUT ANY WARRANTY; without even the implied warranty of
 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 GNU General Public License for more details.
 
 You should have received a copy of the GNU General Public License
 along with this program; if not, write to the Free Software
 Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
 
 */


#include "algorithm.h"
#include "mail-utils.h"
#include <stdio.h>
#include <stdlib.h>
#include <openssl/ssl.h>

#ifdef __cplusplus
extern "C" {
#endif
    
#define	RW	(S_IRUSR|S_IWUSR|S_IRGRP|S_IWGRP|S_IROTH|S_IWOTH)
#define	ENC(c) ((c) ? ((c) & 077) + ' ': '`')
    
char getbase64character(const char input);
unsigned int base64encode(char * input, char ** output,unsigned int sizeofdata);
unsigned int quotedPrintableEncode(const char * in, char ** out, int useCRLF);

char * encode64file(char * pathToFile);
char * uuencodefile(char * pathToFile);

    

#ifdef __cplusplus
}
#endif